package com.cn.bean;

import java.util.List;

/**
 * FUN:
 * 
 * @author sushy
 * @date 2016-3-25
 */
public class PageInfo<T> implements java.io.Serializable {
	private static final long serialVersionUID = 17593758943L;
	// # result list
	private List<T> list;
	private int pageSize = 20;
	private int pageIndex;
	private int total;
	private int beginIndex;
	private int endIndex;

	public PageInfo() {

	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getBeginIndex() {
		return beginIndex;
	}

	public void setBeginIndex(int beginIndex) {
		this.beginIndex = beginIndex;
	}

	public int getEndIndex() {
		return endIndex;
	}

	public void setEndIndex(int endIndex) {
		this.endIndex = endIndex;
	}

}
